package com.jz.enu;

public enum PriceEnum {

    QIYONG(1,"其他"),JINYONG(0,"记账成本价");

    private Integer priceType;
    private String priceTypeName;

    PriceEnum(Integer priceType, String priceTypeName){
        this.priceTypeName = priceTypeName;
        this.priceType = priceType;
    }

    public static String getName(Integer state){
        for (PriceEnum per: PriceEnum.values()) {
            if(per.priceType ==state){
                return per.priceTypeName;
            }
        }
        return null;
    }
    public Integer getPriceType(){
        return priceType;
    }
    public String getPriceTypeName(){
        return priceTypeName;
    }

}
